<%@ Register TagPrefix="cc1" Namespace="C1.Web.C1WebChart" Assembly="C1.Web.C1WebChart" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="template.aspx.vb" Inherits="WebSite.template" enableViewState="False" Trace="False"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>template</title>
		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script src="dateedit/dateedit.js"></script>
		<script src="jsFunctions.js"></script>
	</HEAD>
	<body MS_POSITIONING="GridLayout" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
		<form id="Form1" method="post" runat="server">
		</form>
		<script language="javascript">
			function fnBisiesto(Y,M){
				var cantidad;
				if ((M==1) ||(M==3) ||(M==5) ||(M==7) ||(M==8) || (M==10) || (M==12)){
					cantidad=31;
				 } else {
					if (M==2) {
						if (IsBisiesto(Y)) {
							cantidad = 29;
						} else {
							cantidad = 28;
						}
					} else { cantidad = 30;	}
				 }
				 return(cantidad);
			}				
				
			function IsBisiesto (fin) {
				if (fin % 4 != 0)
				    return false;
				else {
				    if (fin % 100 == 0) {
				        if (fin % 400 == 0) {
				            return true;
				        } else {return false;  }
				    } else { return true; }
				}
			}	
			
		</script>
	</body>
</HTML>
